import { createApp } from 'vue';
import App from './App.vue';
import Vant from 'vant';
import 'vant/lib/index.css';
import router from './router';
import ApiPlugin from './axios/apiPlugin';
import {Toast} from 'vant'
import { createPinia } from 'pinia';
import dayjs from "dayjs";
const pinia = createPinia();
const app = createApp(App);
// 使用 Pinia 插件
app.use(dayjs);
app.use(pinia);
app.use(Vant);
app.use(router);// 挂在路由信息
app.use(ApiPlugin);
app.use(Toast);
app.mount('#app');